//
//  ThePlusSymbolController.m
//  QuickCure1
//
//  Created by 冬冬 on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "ThePlusSymbolController.h"
#import "NetWorkTool.h"
#import "ProgressManager.h"
@interface ThePlusSymbolController ()

@end

@implementation ThePlusSymbolController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"加符号说明";
    UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
    [self.view addSubview:webView];
    
    //网络访问
    NSString *str =@"http://www.baidu.com";
    //转菊花
    [ProgressManager alertLoading];
    
    [NetWorkTool shareManager].responseSerializer = [AFHTTPResponseSerializer serializer];
    [[NetWorkTool shareManager] GET_RequestWithUrlString:str parmas:nil successBloock:^(id responseObject) {

      
        
        NSString *resStr = [[NSString alloc]initWithData:responseObject encoding:NSUTF8StringEncoding];

        [webView loadHTMLString:resStr baseURL:nil];
        [NetWorkTool shareManager].responseSerializer = [AFJSONResponseSerializer serializer];
//        NSLog(@"%@",[NSThread currentThread]);
       //成功后菊花消失
        [ProgressManager dismissLoading];
        
    } failureBlock:^(NSError *error) {
        if (error) {
            NSLog(@"%@",error);
        }
    }];
    
    
}





@end
